package com.itheima.service;

import org.springframework.transaction.annotation.Transactional;

/**
 * @Author zhouxiangyang
 * @Date 2022/4/6 21:04
 */
public interface AccountService {

    /**
     * 转账方法
     * @param fromId 转出账户id
     * @param toId 转入账户id
     * @param amount 转账金额
     */
    @Transactional
    void transfer(int fromId,int toId,double amount);
}
